﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace Baggr
{
    [TestFixture]
    public class StringHelpersTests
    {
        [TestCase("Dima likes meat, but Ann doesn't.", Result = "DIMA LIKES MEAT BUT ANN DOESN T")]
        [TestCase("Dima likes meat, but <span>Ann doesn't.</span>", Result = "DIMA LIKES MEAT BUT ANN DOESN T")]
        public string GetWordsUsual(string str)
        {
            return string.Join(" ", str.GetWords().Select(curr => curr.Key));
        }
        [TestCase(@"d:\Projects\Diploma\Implementation\Data\TRAC\trec07p\data\inmail.7 ")]
        public string GetWordsFromFile(string file)
        {
            return string.Join(" ", File.ReadAllText(file).GetWords().Select(curr => curr.Key));
        }
    }
}
